import request from '@/utils/request'
let baseUrl = process.env.NODE_ENV === 'production' ? '/api/risk' : '/riskyf'
// 汇总
export const getSummaryData = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/dashboard/summary',
    method: 'post',
    data
  })
// 进件分时统计
export const gethoursData = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/dashboard/credit-stats-by-hours',
    method: 'post',
    data
  })
// 授信用户省份统计
export const getProvinceData = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/dashboard/credit-user-province-stats',
    method: 'post',
    data
  })
// 用户年龄分布
export const getUserageData = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/dashboard/credit-user-age-stats',
    method: 'post',
    data
  })
// 授信金额分层统计
export const getamountData = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/dashboard/credit-amount-stats',
    method: 'post',
    data
  })
